﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy;

namespace FortuneHeaven.Entity.Accounts
{
    public partial class ScoreHistoryInfo : EntityBase
    {
        private const string TABLE_NAME = "ScoreHistory";
        private const string INSERT_SQL = "insert into ScoreHistory ( [ID], [Score], [AccountRemain], [NetBarRemain], [AccountID], [AccountName], [NetBarID], [NetBarName], [UserID], [UserName], [InputTime], [Remark]) values ( @ID, @Score, @AccountRemain, @NetBarRemain, @AccountID, @AccountName, @NetBarID, @NetBarName, @UserID, @UserName, @InputTime, @Remark)";
        private const string UPDATE_SQL = "update ScoreHistory set  [ID] = @ID, [Score] = @Score, [AccountRemain] = @AccountRemain, [NetBarRemain] = @NetBarRemain, [AccountID] = @AccountID, [AccountName] = @AccountName, [NetBarID] = @NetBarID, [NetBarName] = @NetBarName, [UserID] = @UserID, [UserName] = @UserName, [InputTime] = @InputTime, [Remark] = @Remark where ID = @ID";
        /// <summary>
        /// 
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int64 Score
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int64 AccountRemain
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int64 NetBarRemain
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32 AccountID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String AccountName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32 NetBarID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String NetBarName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32 UserID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String UserName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime InputTime
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String Remark
        {
            get;
            set;
        }
        public override void SetValue(string key, object value)
        {
            key = key.ToLower();
            switch (key)
            {
                case "id":
                    this.ID = (Int32)value;
                    break;
                case "score":
                    this.Score = (Int64)value;
                    break;
                case "accountremain":
                    this.AccountRemain = (Int64)value;
                    break;
                case "netbarremain":
                    this.NetBarRemain = (Int64)value;
                    break;
                case "accountid":
                    this.AccountID = (Int32)value;
                    break;
                case "accountname":
                    this.AccountName = (String)value;
                    break;
                case "netbarid":
                    this.NetBarID = (Int32)value;
                    break;
                case "netbarname":
                    this.NetBarName = (String)value;
                    break;
                case "userid":
                    this.UserID = (Int32)value;
                    break;
                case "username":
                    this.UserName = (String)value;
                    break;
                case "inputtime":
                    this.InputTime = (DateTime)value;
                    break;
                case "remark":
                    this.Remark = (String)value;
                    break;
            }
        }
    }



}
